package com.yxnsh.cloud.controller;

import com.yxnsh.cloud.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderFeignController {

    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping(value = "/consumer/payment/lb")
    public String getPaymentById() {
        return paymentFeignService.lb();
    }

    @GetMapping(value = "/consumer/payment/timeout")
    public String timeout() {
        return paymentFeignService.timeout();
    }


}
